package org.jeecg.modules.travel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@Schema(description="景点文件表")
@TableName("jh_attraction_file")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class JhAttractionFile {

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 景点id
     */
    @Schema(description = "景点id")
    private String attractionId;

    /**
     * 类型：0-图片，1-音频，2-视频
     */
    @Schema(description = "类型：0-图片，1-音频，2-视频")
    @TableField("type")
    private Integer type;

    /**
     * 地址
     */
    @Schema(description = "地址")
    @TableField("path")
    private String path;

}